package com.lagou.es_springcloud.service.impl;

import com.lagou.es_springcloud.mapper.ProductsMapper;
import com.lagou.es_springcloud.pojo.Products;
import com.lagou.es_springcloud.service.ProductsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductsServiceImpl implements ProductsService {

    @Autowired
    private ProductsMapper productsMapper;

    @Override
    public Products findById(Integer id) {
        return productsMapper.findById(id);
    }
}
